/*
 * Employee.java
 *
 * This class is a base class that contains an instance variable to store
 * the name of the employee, constructor to initialize the variable and
 * a method to display the name.
 *
 * 
 */

package com.javacore.day6.maxsoft1;

/**
 * Employee class that act as the base class for other classes.
 * @author 
 */
public class Employee {
    
    /** Creates a new instance of Employee */
    public Employee() {
    }
    
    /**
     * Creates a new instance of Employee class and stores the name
     * in the instance variable.
     * @param name Parameter containing the name of the employee
     */
    public Employee(String name) {
        empName = name;
    }
    
    /**
     * Method to display the name.
     */
    void displayDetails() {
        System.out.printf("Employee Name: %s", empName);
    }
    
    /**
     * Instance variable to store the employee's name.
     */
    String empName;
}
